package appserver;

import java.util.concurrent.LinkedBlockingQueue;

public class JHelpAppServer_Main {
	public static void main(String args[]){
		LinkedBlockingQueue<Query> queryQueue = new LinkedBlockingQueue<Query>();
		QueueManager manager = new QueueManager(queryQueue);
		Model model = new AppServerModel(manager);
		((Observable)model).addObserver(manager);
		TcpIPServer tcpIpServer = new TcpIPServer("configs/appserver/server_conf.xml", manager);
		model.setDataSource("configs/appserver/client_conf.xml");
		new Thread((Runnable)model).start();
		new Thread(tcpIpServer).start();
		int i = 0;
	}
}
